import pytest,requests

@pytest.fixture(scope='function')
def login_token():
    url='http://10.59.9.18/movieApi/user/v2/login'
    data={
        'email': '1478997572@qq.com',
        'pwd': 'eWLPHopE945d2ivttHaQTQ=='
    }
    login=requests.post(url=url,data=data)
    print(login.json())
    login_json=login.json()
    print(login_json['result']['sessionId'])
    print(login_json['result']['userId'])
    yield login_json['result']['sessionId'],login_json['result']['userId']
